/*
Package bootstap
@Author   : Uyynot
@Email    : uyynot@qq.com
@Time     : 2024/1/29 17:17
@File     : logger.go
@Project  : gohub
@Desc     :
*/
package bootstap

import (
	"gohub/pkg/config"
	"gohub/pkg/logger"
)

// SetUpLogger 初始化Logger
func SetUpLogger() {
	logger.InitLogger(
		config.GetString("log.filename"),
		config.GetInt("log.max_size"),
		config.GetInt("log.max_backup"),
		config.GetInt("log.max_age"),
		config.GetBool("log.compress"),
		config.GetString("log.type"),
		config.GetString("log.level"),
	)
}
